﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

using System.Text.RegularExpressions;

namespace HST.Application.Seedwork.Validator
{
    public class RegExp
    {
        public bool IsEmail(string input)
        {
            string pattern = @"^[\w-]+(\.[\w-]+)*@[\w-]+(\.[\w-]+)+$";
            return Regex.IsMatch(input, pattern);
        }
    }
}
